package {
	import aeon.AeonLAF;
	
	import b4.ApplicationFacade;
	import b4.util.GameProfile;
	
	import flash.display.Sprite;
	
	import org.aswing.AsWingManager;
	import org.aswing.UIManager;

	[SWF(width='1200', height='600', backgroundColor='#CECAB1', frameRate='30')]
	public class B4Pro1 extends Sprite
	{
		private var mouseTip:Sprite;
		
		public function B4Pro1()
		{
			GameProfile.stageWidth = stage.stageWidth;
			GameProfile.stageHeight = stage.stageHeight;
			GameProfile.setPlatform();
			
			AsWingManager.initAsStandard(this, true, false);
			UIManager.setLookAndFeel(new AeonLAF());
			ApplicationFacade.getInstance().startup( this );
		}
		
		public function showMouseTip(mouseTip:Sprite):void
		{
			hideMouseTip();
			this.mouseTip = mouseTip;
			addChild(mouseTip);
		}
		
		public function hideMouseTip():void
		{
			if (mouseTip != null)
				removeChild(mouseTip);
			mouseTip = null;
		}
	}
}
